package com.digitalchina.industry.service;
import com.digitalchina.industry.dao.EyeModelIndustryMapper;
import com.digitalchina.industry.model.EyeModelIndustry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * Created by fanbo on 2017-07-14.
 */
@Service
public class IndustryService {
    @Autowired
    private EyeModelIndustryMapper eyeModelIndustryMapper;

    public int findTotalCount(Map<String, Object> params) {
        return  eyeModelIndustryMapper.findTotalCount(params);
    }

    public List<Map<String,Object>> getAllIndustrylList(Map<String, Object> params) {
        return eyeModelIndustryMapper.getAllIndustrylList(params);
    }



    public int addIndustry(Map<String, Object> params) {
        return eyeModelIndustryMapper.addIndustry(params);
    }

    public int editIndustry(Map<String, Object> params) {
        return eyeModelIndustryMapper.editIndustry(params);
    }

    public int deletIndustry(Map<String, Object> params) {
        return eyeModelIndustryMapper.deletIndustry(params);
    }

    public List<Map<String,Object>> checkIndustryName(Map<String, Object> params) {
        return eyeModelIndustryMapper.checkIndustryName(params);

    }
}
